package com.czz.portal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName: Order
 * @Author Czz
 * @Date 2020/2/9
 * @Time 16:21
 **/
@Data
@TableName(value = "edu_order")
@Accessors(chain = true)
public class Order {

    @TableId(value = "order_id", type = IdType.ID_WORKER_STR)
    private String orderId;

    @TableField(value = "teacher_id")
    private String teacherId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "user_nickname")
    private String nickName;

    @TableField(value = "user_mobile")
    private String mobile;

    @TableField(value = "course_id")
    private String courseId;

    @TableField(value = "course_name")
    private String courseName;

    @TableField(value = "order_payable")
    private BigDecimal payable;

    @TableField(value = "order_paid")
    private BigDecimal paid;

    @TableField(value = "order_status")
    private Integer status;

    @TableField(value = "order_trade")
    private String trade;

    @TableField(value = "order_paytime")
    private Date payTime;

    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
